import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_work_type' })
export default class BaseWorkType extends BaseEntity {


  @Column({ type: 'varchar', length: 50, unique: true,name:'work_type_code', comment: '岗位编码' })
  @ApiProperty()
  workTypeCode: string;

  @Column({ type: 'varchar', length: 50,name:'work_type_name', comment: '岗位名称' })
  @ApiProperty()
  workTypeName: string;

  @Column({ type: 'float', nullable: true,name:'standard_hour', comment: '标准工时（张／秒）' })
  @ApiProperty()
  standardHour: number;

  @Column({ type: 'float', nullable: true,name:'standard_cost', comment: '标准费用（元／小时）' })
  @ApiProperty()
  standardCost: number;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
